Documentation forSecurity Event Manager

Obtain a storage access key

The storage account key is a 512b access key used to authenticate and access the storage account. The key is generated automatically when you create the storage account.

Enter the following command in the Azure CLI to list your storage account keys:

az storage account keys list --account-name <STORAGE_ACCOUNT> --resource-group <RESOURCE_GROUP>

where STORAGE_ACCOUNT and RESOURCE_GROUP are the storage account and resource group names you obtained in Create and manage storage accounts, resource groups, and locations, respectively. You can find your storage account and resource group in the Azure Portal under Home > Storage accounts.

Remove the angle brackets (< >) when entering the actual account and resource group names.

The command lists two storage account keys in JSON format:

  • Primary (key1)

  • Secondary (key2)

JSON is the default format. You can change this format later.

You can use either key. For example: